
from django.conf.urls import url
from django.contrib import admin
from django.urls import path, include

from AXF import settings

urlpatterns = [
    path('admin/', admin.site.urls),
    url(r'app/',include('App.urls',namespace='app'))

]

if settings.DEBUG:
    #settings导入的是settings文件
    import debug_toolbar

    urlpatterns = [
        path('__debug__/', include(debug_toolbar.urls)),

        # For django versions before 2.0:
        # url(r'^__debug__/', include(debug_toolbar.urls)),

    ] + urlpatterns
